<html lang="zh" xmlns:th="http://www.thymeleaf.org" style="height: 100%">
<div th:fragment="html">
    <!--<div th:replace="include/head.html::html"></div>-->
    <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
            <div class="layui-logo" lay-href="home">
                <span>layuiAdmin</span>
            </div>
            <!--想让摸个默认选中的话 就 在dd  上加上  class="layui-this" -->
            <!--想让摸个默认展开的话 就 在li 上加上  class="layui-nav-itemed" -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed" th:each="item:${session.leftUrls}">
                    <a class="" th:if="${item.url == 'javascript:;'}" th:href="${item.url}" >
                        <i class="layui-icon " th:attrappend="class=${item.iconClass}" ></i>
                        <span th:text="${item.title}"></span>
                    </a>
                    <a class="" th:if="${item.url != 'javascript:;'}" th:lay-href="${item.url}" >
                        <i class="layui-icon " th:attrappend="class=${item.iconClass}" ></i>
                        <span th:text="${item.title}"></span>
                    </a>
                    <dl class="layui-nav-child" th:each="child:${item.child}">
                        <dd>
                            <a th:if="${child.url == 'javascript:;'}" th:href="${child.url}">
                                <i class="layui-icon " th:attrappend="class=${child.iconClass}" ></i>
                                <span th:text="${child.title}"></span>
                            </a>
                            <a th:if="${child.url != 'javascript:;'}" th:lay-href="${child.url}">
                                <i class="layui-icon " th:attrappend="class=${child.iconClass}" ></i>
                                <span th:text="${child.title}"></span>
                            </a>
                            <dl class="layui-nav-child" th:each="grandson:${child.child}">
                                <dd>
                                    <a th:if="${grandson.url == 'javascript:;'}" th:lay-href="${grandson.url}">
                                        <i class="layui-icon " th:attrappend="class=${grandson.iconClass}" ></i>
                                        <span th:text="${grandson.title}"></span>
                                    </a>
                                    <a th:if="${grandson.url != 'javascript:;'}" th:lay-href="${grandson.url}">
                                        <i class="layui-icon " th:attrappend="class=${grandson.iconClass}" ></i>
                                        <span th:text="${grandson.title}"></span>
                                    </a>
                                </dd>
                            </dl>
                        </dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
</div>
